/*Portfolio CSS*/
.card_portfolio{
	width:100vw;
	height:50vh;
	display: flex;
	box-sizing: border-box;
	cursor: pointer;
	margin: 0.3% 0.3%;
	background-position:center;
	background-size:cover;
	transition: transform 0.5s ease;
}
.hover-text2 {
  display:none;
  position: absolute;
  top: 50%;
  left: 49.9%;
  width: 100.2%;
  height: 100.2%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  text-decoration:bold;
  transition: display 0.6s ease-in-out;  
}
.hover-text2 p
{
	position:absolute;
	top:25%;
	left:0;
	right:0;
    color: white; 
	font-size:2.2vw;	
}
.hover-element-2:hover .hover-text2{
  display: block;
}
.hover-element-2 {
  position: relative;
  display: inline-block;
}
.container_portfolio{
	display: flex;
    justify-content: space-between;
}
.slika{
	width: 33.33%;
	color:#043a53;
    margin-bottom: 1%;
    text-align: center;
}
.nevidljiv{
	opacity:0;
	width:100vw;
	height:80vh;
}
.col_portfolio{
	width:50%;
	height:50vh;
	text-align:center;
}
.col_portfolio h2{
	position:relative;
	display:inline-block;
	color:white;
	margin-bottom:-50%;
	
}
.col_portfolio h2::before{
	content: '';
	position:absolute;
	left:0;
	bottom:0;
	background-color:#05a45c;
	height:2.5px;
	width:100%;
	box-sizing:border-box;
}
.portfolio_around_border{
	display:block;
	margin-top:1%;
}
.portfolio_around_border button{
    height: 40vh;
    width: 50vw;
    font-family: 'Poppins',sans-serif;
    position: relative;
    margin: auto;
	margin-bottom:0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    border: 6px solid #17fa8e;
    color: white;
    font-size: 2vw;
    font-weight: 600;
    letter-spacing: 0px;
    box-shadow: 30px 30px 50px rgba(0,0,0,0.5);
    cursor: pointer;
    outline: none;

}
.portfolio_around_border p
{
	opacity:0;
	color:white;
	position:absolute;
	top: -18%;
    left: 0%;
	font-size:1.6vw;
}
.portfolio_around_border button:before{
    content: "";
    position: absolute;
    height: 15vh;
    width: 50vw;
    background-color: black;
    margin: auto;
    left: -6px;
    right: 0;
    bottom: -6px;
    transition: width 0.7s,
                height 0.7s 0.7s;
}
.portfolio_around_border button:after{
    content: "";
    position: absolute;
    height: 15vh;
    width: 50vw;
    background-color: black;
    margin: auto;
    left: -6px;
    right: 0;
    top: -6px;
    transition: width 0.7s,
                height 0.7s 0.7s;
}
.portfolio_around_border button:hover:before,
.portfolio_around_border button:hover:after{
    width: 0;
    height: 6px;
    transition: height 0.7s,
                width 0.7s 0.7s;
	
}
.portfolio_around_border button:hover{
	color:black;
}
.portfolio_around_border button:hover p
{
		opacity:1;
		transition:3.2s;
}


@media only screen and (max-width: 1024px) and (orientation: portrait) {
.card_portfolio{
	width:10vw;
	height:10vh;
	display: flex;
	border-radius:0;
	padding: 25% 25%;
	box-sizing: border-box;
	margin: 0;
}
.card_portfolio:hover{
	transform: none;
}
.slika{
	width: 100% !important; 
	color:#043a53;
    margin-bottom: 2% !important;
    text-align: center;
}
.hover-text2 {
  display:flex;
  position: absolute;
  border-radius: 0;
  top: 20%;
  left: 26%;
  width: 65%;
  height: 20%;
  color: white; 
  font-size:3vh;
  background-color: rgba(0, 0, 0, 0.6); 
  text-decoration:bold;
  justify-content: center; 
  align-items: center;
  text-align:center;
}
.hover-text2 p {
	align-items: center; 
	text-align:center;  
	justify-content:center;
	color: white; 
	font-size:2.3vh;
	top: -45%;
	left: 0%;
}
.container_portfolio{
	display: block;
    justify-content: space-between;
}
}


@media only screen and (orientation: portrait) {
.card_portfolio:hover{
	transform: none;
}
.slika{
	width: 100% !important;
	color:#043a53;
    margin-bottom: 2% !important;
    text-align: center;
}
.hover-text2 {
  display:flex;
  position: absolute;
  border-radius: 0;
  top: 20%;
  left: 26%;
  width: 65%;
  height: 20%;
  color: white; 
  font-size:3vh;
  background-color: rgba(0, 0, 0, 0.6); 
  text-decoration:bold;
  justify-content: center; 
  align-items: center;
  text-align:center;
}
.hover-text2 p {
	align-items: center; 
	text-align:center;  
	justify-content:center;
	color: white; 
	font-size:2.8vh !important;
	top: -55% !important;
	left: 0%;
}
.card_portfolio{
	width:10vw;
	height:10vh;
	display: flex;
	border-radius:0;
	padding: 25% 25%;
	box-sizing: border-box;
	margin: 0;
}
.container_portfolio{
	display: flex;
	flex-direction:column;
}
.col_portfolio{
	width:100%;
	height:40vh;
	margin-bottom:50%;
}
.col_portfolio h2{
	margin-bottom:-50%;
	font-size: 4.5vh;
}

.portfolio_around_border{
	margin-bottom:50%;
}
.portfolio_around_border button{
    height: 40vh;
    width: 100vw;
    font-size: 2vh;
	box-shadow: none;
}
.portfolio_around_border p
{
	top: 20%;
    left: 0;
	right:0;
	bottom:0;
	font-size:1.8vh;
}
.portfolio_around_border button:before{
    width: 100vw;

}
.portfolio_around_border button:after{
    width: 100vw;
}
.col_portfolio h2::before{
	height:5%;
}

#item1 {
        order: 1; /*Namestanje slike i teksta da idu jedan ispod drugog, prvo slika, pa ispod slike text*/
    }
#item2 {
        order: 2;
    }
}

@media only screen and (max-height: 575.98px) and (orientation: landscape) {
.card_portfolio{
	border-radius:0;
	padding: 17% 17%;
	box-sizing: border-box;
	margin: 0;
	margin-bottom:1%;
}
.card_portfolio:hover{
	transform: none;
}
.slika{
	width: 100% !important;
}
.hover-text2 {
  display:flex;
  border-radius: 0;
  top: 20%;
  left: 32.5%;
  width: 65%;
  height: 20%;

}
.hover-text2 p {
	align-items: center; 
	text-align:center;  
	justify-content:center;
	color: white; 
	font-size:2.6vw;
	top: -30%;
	left: 0;
}
.container_portfolio{
	display: flex;
	flex-direction:row;
}
.col_portfolio{
	width:100%;
	height:40vh;
	margin-bottom:10%;
}
.col_portfolio h2{
	margin-bottom:0;
	font-size:3.6vw;
}
.portfolio_around_border{
	margin-bottom:0;
}
.portfolio_around_border button{
    height: 45vh;
    width: 50vw;
    font-size: 2vw;
}
.portfolio_around_border p{
	top: 0%;
    left: 0;
	right:0;
	bottom:0;
	font-size:1.7vw;
}
.portfolio_around_border button:before{
    width: 50vw;

}
.portfolio_around_border button:after{
    width: 50vw;
}
}